﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace An_Im.Expression.Model
{
    /// <summary>
    /// 关键帧列表
    /// </summary>
    public class SavedKeyPointFormulaList:List<SavedKeyPointInformation>
    {
        public static SavedKeyPointFormulaList DefaultList { get; private set; }

        static SavedKeyPointFormulaList()
        {
            DefaultList = new SavedKeyPointFormulaList();
            DefaultList.Add(new SavedKeyPointInformation("周期轮数", "0", "2", "floor($)"));
            DefaultList.Add(new SavedKeyPointInformation("三角周期变量Sin", "0", "2", "sin($*2*pi)"));
            DefaultList.Add(new SavedKeyPointInformation("三角周期变量Cos", "0", "2", "cos($*2*pi)"));
            DefaultList.Add(new SavedKeyPointInformation("方波脉冲周期变量", "0", "2", "(floor($)%2)"));
            DefaultList.Add(new SavedKeyPointInformation("三角波周期变量", "0", "2", "($-floor($))"));
            DefaultList.Add(new SavedKeyPointInformation("三角波周期变量2", "0", "2", "(1+floor($)-$)"));
            DefaultList.Add(new SavedKeyPointInformation("锯齿波周期变量", "0", "4", "((1-floor($)%2)*($-floor($))+(floor($)%2)*(1+floor($)-$))"));

        }


    }
}
